#ifndef SYSTEM_SETTING_H
#define SYSTEM_SETTING_H

#include <QWidget>
#include <QtGui>
#include <dialog.h>
class System_Setting : public QWidget
{
    Q_OBJECT
public:
    explicit System_Setting(QWidget *parent = 0);
    QByteArray sendBuf;
signals:
    
public slots:
    void recvResult(QByteArray rcvdByte);
    void hideDateWidget(QDate date);
    void change_passwd();
    void change_sypasswd();

private:
    QTabWidget *tabWidget;
    Dialog *theKeyBoard;

    QGroupBox *datebox;

    QGroupBox *resetbox;
    QWidget *userbox;
    QWidget *userchange;
//***********************日期时间设定****************************//
    QCalendarWidget *dateWidget;
    QLineEdit *txtActived;
    QLineEdit *dayEdit;
    QLineEdit *weekEdit;
    void showDateWidget();
    QLineEdit *hour;
    QLineEdit *min;
    QLineEdit *sec;
    void time_setting();
//*************************用户密码修改*******************************//
    QLabel *passwd;
    QPushButton *pdButton;
    QLineEdit *password;
    QLineEdit *newpdEdit;
    void password_settring();
//*************************系统初始化*******************************//
    QLineEdit *sypassword;
    void sypassword_setting();
protected:
     bool eventFilter(QObject *obj, QEvent *event);
};

#endif // SYSTEM_SETTING_H
